﻿using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Web;
using System.Web.Http;
using web_api.Models;

namespace web_api.Controllers
{
    public class updataController : ApiController
    {
    

        //验证登录
        public int Post()
        {
            var username = HttpContext.Current.Request["username"];
            var password = HttpContext.Current.Request["password"];

            int falg= DBhelper.Login(username, password);
            if (falg==0)
            {
                return 0;
            }
         
                return 3;
            

        }

       
   
    }
}
